package com.pixeljet.html5.client;

import com.google.gwt.core.client.JavaScriptObject;

public class FormData {

	public static JavaScriptObject formData;
	
	public static native JavaScriptObject append(String name, JavaScriptObject data) /*-{
		var formData = @com.pixeljet.html5.client.FormData::formData;
		if(formData == null) {
			formData = new FormData();
		}
		formData.append(name, data);
		return formData;
	}-*/;

	public void setFormData(JavaScriptObject formData) {
		this.formData = formData;
	}

	public JavaScriptObject getFormData() {
		return formData;
	}
}
